//
//  UseControl.swift
//  learn-ios
//
//  Created by Dong on 2022/4/4.
//

import SwiftUI

import UIKit

struct UseControl: View {
    @State private var fruits = ["Apple", "Banana", "Mango"]

    @State private var pastedText: String = ""

    var body: some View {
        VStack {
            List {
                NavigationLink {
                    Buttons()
                } label: {
                    Text("按钮")
                }

                NavigationLink {
                    ValueInput()
                } label: {
                    Text("值输入")
                }

                NavigationLink {
                    Pickers()
                } label: {
                    Text("拾取器")
                }
            }.navigationTitle("控件")
        }
    }
}

struct UseControl_Previews: PreviewProvider {
    static var previews: some View {
        NavigationView {
            UseControl()
        }
    }
}
